﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using FlickrMe.Upload;
using FlickrMe.Config;

namespace FlickrMe
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(String[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
        
            
            FlickrMe f = new FlickrMe(ConfigManager.REGISTRY_TYPE);

            if (args.Length == 0)
            {
                f.doUpload();
            }
            else
            {
                // Called from "send to" menu.
                f.doUpload(args);
            }
            Application.Exit();
        }
    }
}
